<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap 101 Template</title>
<link href="../css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
	<div class="container">
		<div class="row">
			<nav class="navbar navbar-default">
				<div class="container-fluid">
					<!-- Brand and toggle get grouped for better mobile display -->
					<div class="navbar-header">
						<button type="button" class="navbar-toggle collapsed"
							data-toggle="collapse"
							data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
							<span class="sr-only">Toggle navigation</span> <span
								class="icon-bar"></span> <span class="icon-bar"></span> <span
								class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="#">21Cake</a>
					</div>
					<div class="collapse navbar-collapse"
						id="bs-example-navbar-collapse-1">
						<ul class="nav navbar-nav">
							<li class="active"><a href="#">首页 <span class="sr-only">(current)</span></a></li>
							<li class="dropdown"><a href="#" class="dropdown-toggle"
								data-toggle="dropdown" role="button" aria-haspopup="true"
								aria-expanded="false"><span class="caret"></span></a></li>
						</ul>
						<ul class="nav navbar-nav navbar-right">
							<li><a href="adminLogin">注销</a></li>
							<li><a href="#">loginUser</a></li>
							<li class="dropdown"><a href="#" class="dropdown-toggle"
								data-toggle="dropdown" role="button" aria-haspopup="true"
								aria-expanded="false">用户中心<span class="caret"></span></a>
								<ul class="dropdown-menu">
									<li><a href="#">增加管理员</a></li>
									<li><a href="#">修改密码</a></li>
									<li><a href="#">修改用户名</a></li>
									<li role="separator" class="divider"></li>
									<li><a href="#">Separated link</a></li>
								</ul></li>
						</ul>
					</div>
				</div>
			</nav>
		</div>
		<div class="row">
			<div class="col-md-2">
				<ul class="list-group">
					<li class="list-group-item"><a href="orderlist.html">订单列表</a></li>
					<li class="list-group-item"><a href="userlist.jsp">用户列表</a></li>
					<li class="list-group-item"><a href="cakelist.html">商品列表</a></li>
					<li class="list-group-item"><a href="comm.html">评论列表</a></li>
				</ul>
			</div>
			<div class="col-md-10">
				<div class="row">
					<form action="orderdetail.html" method="post">
						<div class="form-group">
							<label for="username">购买用户</label> <input type="text"
								class="form-control" id="username" value="${username}"
								disabled="disabled">
						</div>
						<div class="form-group">
							<label for="address">送货地址</label> <input type="text"
								class="form-control" value="${cakeOrder.address}" id="address"
								disabled="disabled">
						</div>
						<div class="form-group">
							<label for="consignee">收货人</label> <input type="text"
								class="form-control" id="consignee"
								value="${cakeOrder.consignee}" disabled="disabled">
						</div>
						<div>
							<label for="status">订单状态</label> <select class="form-control"
								id="status" name="status">
								<option value="">- - 请选择订单状态 - -</option>
								<c:if test="${cakeOrder.status=='未发货'}">
									<option value="未发货" selected="selected">- - 未发货 - -</option>
								</c:if>
								<c:if test="${cakeOrder.status!='未发货'}">
									<option value="未发货"">- - 未发货 - -</option>
								</c:if>
								<c:if test="${cakeOrder.status=='已发货'}">
									<option value="已发货" selected="selected">- - 已发货 - -</option>
								</c:if>
								<c:if test="${cakeOrder.status!='已发货'}">
									<option value="已发货"">- - 已发货- -</option>
								</c:if>
								<c:if test="${cakeOrder.status=='已接收'}">
									<option value="已接收" selected="selected">- - 已接收 - -</option>
								</c:if>
								<c:if test="${cakeOrder.status!='已接收'}">
									<option value="已接收"">- - 已接收 - -</option>
								</c:if>
							</select>
						</div>
						<div class="form-group">
							<input type="hidden" name="id" value="${param.orderid}" />
						</div>
						<table id="cakeproductlist"
							class="table table-bordered table-hover"
							style="text-align: center;">
							<thead>
								<tr style="background-color: palegoldenrod; font-weight: bold;">
									<td>订单号</td>
									<td>蛋糕名称</td>
									<td>购买数量</td>
									<td>价格</td>
									<td>日期</td>
								</tr>
							</thead>
							<tbody>
								<c:forEach var="d" items="${details}" varStatus="s">
									<tr>
										<td>${d.oid}</td>
										<td>${d.cakename}</td>
										<td>${d.count}</td>
										<td>${d.unitprice}</td>
										<td>${cakeOrder.date}</td>
									</tr>
								</c:forEach>
							</tbody>
						</table>
						<button type="submit" class="btn btn-default"
							style="float: right; background-color: palegoldenrod">修改</button>
						<a href="orderlist.html" class="btn btn-default"
							style="float: right; background-color: palegoldenrod; margin-right: 20px">返回</a>
					</form>
				</div>
			</div>
		</div>
	</div>
	<script src="../js/jquery-1.11.3.js"></script>
	<script src="../js/bootstrap.min.js"></script>
</body>
</html>
